This fixes a "make dist" tarball produced on a minimal system and run on a
non-minimal system. Automake knows that files that are only conditionally
included in dist_whatever_WHATEVER are to be distributed, but it does not
do the same for files that are only conditionally included in EXTRA_DIST,
which is how glib-tap.mk's various variables like dist_test_scripts work.
Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #557
Approved by: cgwalters
if BUILDOPT_FUSE
dist_test_scripts += tests/test-rofiles-fuse.sh
+else
+EXTRA_DIST += tests/test-rofiles-fuse.sh
endif
# This one uses corrupt-repo-ref.js
+js_tests = tests/test-corruption.sh
if BUILDOPT_GJS
dist_test_scripts += tests/test-corruption.sh
+else
+EXTRA_DIST += $(js_tests)
endif
dist_installed_test_data = tests/archive-test.sh \
gpg.conf lgpl2 lgpl2.sig pubring.gpg secring.gpg trustdb.gpg)
endif
-if BUILDOPT_GJS
-dist_installed_test_scripts = tests/test-core.js \
+js_installed_tests = \
+ tests/test-core.js \
tests/test-sizes.js \
tests/test-sysroot.js \
$(NULL)
+
+if BUILDOPT_GJS
+dist_installed_test_scripts = $(js_installed_tests)
+else
+EXTRA_DIST += $(js_installed_tests)
endif
test_ltlibraries = libreaddir-rand.la